#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    long n;
    cin >> n;
    long base = 1;
   
    while(n/(base * 10) > 0)
    {
        base = base * 10;
    }
    bool firstNumber = true;
    while(base > 0)
    {
        if (firstNumber)
        {
            cout << n/base;
            firstNumber = false;
        }
        else
        {
            cout << "   "<< n/base;
        }
        n = n % base;
        base = base / 10;
    }
}